package com.eric.config;

/**
 * @description:
 * @author: liuBing
 * @create: 2023-08-15 15:49
 **/

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 拦截器的配置
 */
@Configuration
public class JwtInterceptorConfig implements WebMvcConfigurer {

//    @Bean(name = "authInterceptor")
//    public AuthInterceptor authInterceptor() {
//        return new AuthInterceptor();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(authInterceptor())
//                // 默认拦截所有的路径
//                .addPathPatterns("/**")
//                // 不需要拦截的路由，swagger3
//                .excludePathPatterns("/swagger-resources/**","/swagger-ui/**", "/v3/**", "/error");
//    }



}